<div class="location">当前位置：<a href="#">首页</a> &gt; <span>会员中心</span></div>
<?php echo $this->Html->script(array('admin/multiSelect','default/address'))?>
<div class="content">
	<div class="conRight floatl Box">
    	<?php echo $this->element('index/ucMenu')?>
	</div>
    <div class="conLeft floatr Box Indtion">
		<h3 class="vipTitle">收货地址<p><!--  <em>*</em> 最多可以保留5个收货地址</p>--></h3>
			<div class="dizhiList">
            	<h4>已存收货地址</h4>
                <ol id = 'u_a_l'>
                	<?php foreach ($userAddresses as $ua):?>
                	<li id=<?php echo 'item-'.$ua['UserAddress']['id']?>>
                    	<p>
                    		<?php
                    			 echo $ua['UserAddress']['receiver'];
                    			 echo '　'.sex($ua['UserAddress']['sex']);
                    			 echo '　'.$ua['SysProvince']['name'];
                    			 echo '　'.$ua['SysCity']['name'];
                    			 echo '　'.$ua['UserAddress']['address'];
                    		?>
                    	</p>
                        <span>
                        	<a href="javascript:;" onclick = 'ad.del(<?php echo $ua['UserAddress']['id'] ?>)'>删除</a>
                        </span>
                    </li>
                    <?php endforeach;?>
                </ol>
            </div>
            <div class="dizhiList">
            	<h4>新增收货地址</h4>
            	<?php echo $this->Form->create('UserAddress',array('onsubmit'=>'return false'))?>
                <ul class="added" style="border:0;">
                    <li>
                        <span>收货地址:</span>
                        <?php echo $this->Form->input('sys_province_id',array('options'=>$sysProvinces,'div'=>false,'label'=>false,'id'=>'f_cate','default'=>784))?>
                        <?php echo $this->Form->input('sys_city_id',array('options'=>$sysCitys,'div'=>false,'label'=>false,'id'=>'s_cate'))?>
                        <?php echo $this->Form->input('sys_area_id',array('value'=>139,'label'=>false,'type'=>"hidden"))?>
                    </li>
                    <li>
                        <span>详情地址:</span>
                        <?php echo $this->Form->input('address',array('div'=>false,'label'=>false,'class'=>"txt","style"=>"width:410px;"))?>
                    </li>
                    <li>
                        <span>收货人:</span>
                        <?php echo $this->Form->input('receiver',array('div'=>false,'label'=>false,'class'=>"txt"))?>
                        您的收货姓名
                    </li>
                     <li>
                        <span>性别:</span>
                        <?php echo $this->Form->input('sex',array('div'=>false,'default'=>1,'options'=>sex(),'type'=>'radio','legend'=>false))?>
                    </li>
                    <li>
                        <span>手机:</span>
                        <?php echo $this->Form->input('cellphone',array('div'=>false,'label'=>false,'class'=>"txt"))?>
                        您的手机号码，方便收货人与您联系
                    </li>
                    <li><input name="" type="button" value="保存" onclick = 'ad.submit()' class="btnTj"></li>
                </ul>
                <?php echo $this->Form->end()?>
            </div>
            <script>
			$(function(){
				ms.uniform = false;
				var action = jQuery('base').attr('href')+'areas/Areas/getSonOption';
				ms.ready(2,action);
			})
            </script>
	</div>
</div>